//- Copyright (c) 2016 Lucky Byte, Inc.
tr
  td.center.aligned(rowspan="4"
    style="width:10px; color:darkgreen;") 请求报文
  td.right.aligned.collapsing 交易类型
  td.collapsing.warning(colspan="1")= record.i_pkt.txnType
  td.right.aligned.collapsing 交易子类
  td.collapsing.warning(colspan="1")= record.i_pkt.txnSubType
  td.right.aligned.collapsing 产品类型
  td.collapsing.warning(colspan="1")= record.i_pkt.bizType
  td.right.aligned.collapsing 交易名称
  td.collapsing.warning(colspan="1")= record.trinfo.name
  td.right.aligned.collapsing 接入类型
  td.collapsing.warning(colspan="1")= record.i_pkt.accessType
  td.right.aligned.collapsing 渠道类型
  td.warning(colspan="6")= record.i_pkt.channelType

tr
  td.right.aligned.collapsing 主账号
  td.collapsing.warning(colspan="3")= record.i_pkt.accNo
  td.right.aligned.collapsing 交易金额
  td.collapsing.warning(colspan="1")
    = record.i_pkt.txnAmt ? fmtamt(parseInt(record.i_pkt.txnAmt) / 100) : ''
  td.right.aligned.collapsing 货币代码
  td.collapsing.warning(colspan="1") #{record.i_pkt.currencyCode} 
    if record.i_pkt.currencyCode
      | － #{constant.curr_codes[record.i_pkt.currencyCode] || '未知'}
  td.right.aligned.collapsing 订单发送时间
  td.collapsing.warning(colspan="1")= record.i_pkt.txnTime
  td.right.aligned.collapsing 订单号
  td.warning(colspan="5")= record.i_pkt.orderId

tr
  td.right.aligned.collapsing 商户编号
  td.collapsing.warning(colspan="3")= record.i_pkt.merId
  td.right.aligned.collapsing 终端编号
  td.collapsing.warning(colspan="1")= record.i_pkt.termId || ''
  td.right.aligned.collapsing 证书ID
  td.collapsing.warning(colspan="3")= record.i_pkt.certId || ''
  td.right.aligned.collapsing 加密证书ID
  td.collapsing.warning(colspan="5")= record.i_pkt.encryptCertId || ''

tr(style="border-bottom:2px solid rgb(188,88,188);")
  td.right.aligned.collapsing(style="padding-left:4px;") 后台通知地址
  td.warning(colspan="15")= record.i_pkt.backUrl

tr
  td.center.aligned(rowspan="4"
    style="width:10px; color:darkblue;") 响应报文
  td.right.aligned.collapsing 交易类型
  td.collapsing.positive(colspan="1")= record.o_pkt.txnType
  td.right.aligned.collapsing 交易子类
  td.collapsing.positive(colspan="1")= record.o_pkt.txnSubType
  td.right.aligned.collapsing 产品类型
  td.collapsing.positive(colspan="1")= record.o_pkt.bizType
  td.right.aligned.collapsing 查询流水号
  td.positive(colspan="9")= record.o_pkt.queryId

tr
  td.right.aligned.collapsing 应答码
  td.collapsing.positive(colspan="1")= record.o_pkt.respCode
  td.right.aligned.collapsing 应答消息
  td.positive(colspan="13")= record.o_pkt.respMsg

tr
  td.right.aligned.collapsing 主账号
  td.collapsing.positive(colspan="3")
  td.right.aligned.collapsing 交易金额
  td.collapsing.positive(colspan="1")
    = record.o_pkt.txnAmt ? fmtamt(parseInt(record.o_pkt.txnAmt) / 100) : ''
  td.right.aligned.collapsing 货币代码
  td.collapsing.positive(colspan="1") #{record.o_pkt.currencyCode} 
    if record.o_pkt.currencyCode
      | － #{constant.curr_codes[record.o_pkt.currencyCode] || '未知'}
  td.right.aligned.collapsing 余 额
  td.positive(colspan="7")= record.o_pkt.balance

tr(style="border-bottom:2px solid rgb(88,88,188);")
  td.right.aligned.collapsing 商户编号
  td.collapsing.positive(colspan="3")= record.o_pkt.merId
  td.right.aligned.collapsing 终端编号
  td.collapsing.positive(colspan="1")= record.o_pkt.termId || ''
  td.right.aligned.collapsing 证书ID
  td.collapsing.positive(colspan="3")= record.o_pkt.certId || ''
  td.right.aligned.collapsing 加密证书ID
  td.collapsing.positive(colspan="5")= record.o_pkt.encryptCertId || ''

if record.n_pkt
  tr
    td.center.aligned(rowspan="3"
      style="width:10px; color:darkred;") 通知报文
    td.right.aligned.collapsing 交易类型
    td.collapsing.positive(colspan="1")= record.n_pkt.txnType
    td.right.aligned.collapsing 交易子类
    td.collapsing.positive(colspan="1")= record.n_pkt.txnSubType
    td.right.aligned.collapsing 产品类型
    td.collapsing.positive(colspan="1")= record.n_pkt.bizType
    td.right.aligned.collapsing 查询流水号
    td.collapsing.positive(colspan="3")= record.n_pkt.queryId
    td.right.aligned.collapsing 跟踪号
    td.collapsing.positive(colspan="1")= record.n_pkt.traceNo
    td.right.aligned.collapsing 清算日期
    td.collapsing.positive(colspan="1")= record.n_pkt.settleDate
    td.right.aligned.collapsing 清算金额
    td.positive(colspan="1")
      = record.n_pkt.settleAmt ? fmtamt(parseInt(record.n_pkt.settleAmt) / 100) : ''

  tr
    td.right.aligned.collapsing 应答码
    td.collapsing.positive(colspan="1")= record.n_pkt.respCode
    td.right.aligned.collapsing 应答消息
    td.positive(colspan="13")= record.n_pkt.respMsg

  tr
    td.right.aligned.collapsing 商户编号
    td.collapsing.positive(colspan="3")= record.n_pkt.merId
    td.right.aligned.collapsing 终端编号
    td.collapsing.positive(colspan="1")= record.n_pkt.termId || ''
    td.right.aligned.collapsing 证书ID
    td.collapsing.positive(colspan="3")= record.n_pkt.certId || ''
    td.right.aligned.collapsing 加密证书ID
    td.collapsing.positive(colspan="5")= record.n_pkt.encryptCertId || ''
